<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<title>{$reply['title']}</title>
	<link rel="stylesheet" type="text/css" href="/addons/stonefish_luckynum/template/images/index.css" media="all">
	<script>var require = { urlArgs: 'v={php echo date('YmdH');}' };</script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="{$_W['siteroot']}app/resource/js/require.js"></script>
	<script src="{$_W['siteroot']}app/resource/js/app/config.js"></script>
	<script type="text/javascript">
	// jssdk config 对象
	jssdkconfig = {php echo json_encode($_W['account']['jssdkconfig']);} || {};
	// 是否启用调试
	jssdkconfig.debug = false;
	
	jssdkconfig.jsApiList = [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'showOptionMenu',
		'closeWindow'
	];

	wx.config(jssdkconfig);
	require(['jquery', 'util'], function($, util){
		var sharedata = {
	        "imgUrl" : "{$shareimg}",
	        "link" : "{$sharelink}",
	        "desc" : "{$sharedesc}",
	        "title" : "{$sharetitle}"
	    };		
		
		wx.ready(function () {
			wx.showOptionMenu();
			wx.onMenuShareAppMessage(sharedata);
			wx.onMenuShareTimeline(sharedata);
			wx.onMenuShareQQ(sharedata);
			wx.onMenuShareWeibo(sharedata);
			document.querySelector('#closeWindow').onclick = function () {
                wx.closeWindow();
            };
		});		
	});
	</script>
</head>
<body id="wrap">
	<div class="cardexplain">
		<ul class="round">
			<li class="title mb"><span class="none">{$reply['title']}</span></li>
			<li class="nob">{php echo htmlspecialchars_decode($reply['ruletext'])}</li>
			<li class="nob"></li>      
		</ul>
		<button class="btn btn_primary" id="closeWindow">返回对话模式</button>
	</div>
</body>
</html>
